<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
</head>
<body>
<script>
    function createCar(figure,factory,qualified,retail,specification){
        this.figure=figure;
        this.factory=factory;
        this.qualified=qualified;
        this.retail=retail;
        this.specification=specification
        this.make=function(){
        	///工厂模式
		//造一辆车 出厂 （合格证/建议零售价/说明书）
            document.write(`造${this.figure}辆车 ,出厂:${this.factory}, 合格证: ${this.qualified} ,零售价:  ${this.retail} ,使用说明书书 : ${this.specification}`);
        }
    }
    var lol=new createCar("一","2017-7-25","合格","建议零售价1千万英镑","一开车就碎");
    lol.make();
</script>
</body>
</html>